package domain;

public class User {
    int uid;
    String avatar;
    String name;
    String password;
    String username;
    int lastHistory;

    public User(int uid, String avatar, String name, String username) {
        this.uid = uid;
        this.avatar = avatar;
        this.name = name;
        this.username = username;
    }

    public User(int uid, String avatar, String name, String password, String username, int lastHistory) {
        this.uid = uid;
        this.avatar = avatar;
        this.name = name;
        this.password = password;
        this.username = username;
        this.lastHistory = lastHistory;
    }

    public int getLastHistory() {
        return lastHistory;
    }

    public void setLastHistory(int lastHistory) {
        this.lastHistory = lastHistory;
    }

    public User() {
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getUid() {
        return uid;
    }

    public User setUid(int uid) {
        this.uid = uid;
        return this;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid='" + uid + '\'' +
                ", avatar='" + avatar + '\'' +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", username='" + username + '\'' +
                '}';
    }
}
